package com.cwl.pattern.迭代器模式;

/**
 * @program: pattern
 * @description: 聚合接口
 * @author: ChenWenLong
 * @create: 2019-07-10 11:17
 **/
public interface Aggregate {

    //添加
    void add(Object obj);
    //删除
    void remove(Object obj);
    //迭代
    Iterator getIterator();
}
